package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import cn.hutool.core.annotation.Alias;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.example.springboot.common.LDTConfig;
import lombok.Getter;
import lombok.Setter;

/**
* <p>
* 
* </p>
*
* @author ikun
* @since 2023-05-04
*/
@Getter
@Setter
@ApiModel(value = "Cart对象", description = "")
public class Cart implements Serializable {

private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    // 商品id
    @ApiModelProperty("商品id")
    @Alias("商品id")
    private Integer goodsId;

    // 商品数量
    @ApiModelProperty("商品数量")
    @Alias("商品数量")
    private Integer num;

    // 用户id
    @ApiModelProperty("用户id")
    @Alias("用户id")
    private Integer userId;

    // 加入日期
    @ApiModelProperty("加入日期")
    @Alias("加入日期")
    private String createTime;
    
    @TableField(exist = false)
    private Goods goods;
}
